package com.wj.controller;

import com.wj.pojo.Admin;
import com.wj.service.IAdminService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author wj
 * @Date 2022/7/27 12:09
 * @Description: TODO
 * @Version 1.0
 */
@RestController
@RequestMapping("/chat")
public class ChatController {

    @Resource
    private IAdminService adminService;
    @ApiOperation(value = "获取所有操作员")
    @GetMapping("/admin")
    public List<Admin> getAllAdmins(String keywords) {
        return adminService.getAllAdmins(keywords);
    }

}

